<?php

/*
 * A simple auth-system:
 *
 */

class Auth {

    private $ci;
    private $userId;
    private $userGroup;

    public function __construct($id = null) {
        if(!is_null($id)) {
            $this->ci =& get_instance();

            $userObject = new MUser($id);
            $userObject->group->get();

            echo $userObject->group->name;
        }
    }

    public function setUserId($id) {
        $this->userId = $id;
    }

    public function auth($controller) {
        
    }
}